package cn.dkdoo.redis.service;

import cn.dkdoo.bean.vo.SendRequest;
import cn.dkdoo.redis.repository.RedisRepository;
import cn.dkdoo.utils.annotation.DkdTransactional;
import cn.dkdoo.utils.entity.BaseResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author nicky
 * @date 2021/5/14 下午6:51
 */
@Service
@DkdTransactional
public class RedisService {

    @Autowired
    RedisRepository redisRepository;

    public BaseResponse send(SendRequest request){
        BaseResponse response = new BaseResponse();
        redisRepository.send(request);
        response.buildSuccess();
        return response;
    }
}
